class Storage{
  setStorage(key,data,config){
    wx.setStorage({
      key: key,
      data: data,
      success: res => {
        console.log(`存储${config}成功`)
      }
    })
  }
  getStorage(key){
    return new Promise((resolve,reject)=>{
      wx.getStorage({
        key: key,
        success: res => {
          resolve(res.data)
        }
      })
    })
    
  }


}
export { Storage}